package com.whlilong.jxc.treemodel;

import java.util.ArrayList;
import java.util.List;

public class StaffInfoTreeParent {
	private String staffname;
	
	private List<StaffInfoTreeChildren> StaffInfoTreeChildren;
	
	public StaffInfoTreeParent(String staffname){
		this.staffname = staffname;
		StaffInfoTreeChildren = new ArrayList<StaffInfoTreeChildren>();
		
	}
	
	//添加子节点
	public void add(StaffInfoTreeChildren sp){
		StaffInfoTreeChildren.add(sp);
		sp.setStaffParent(this);
	}

	public String getStaffname() {
		return staffname;
	}

	public void setStaffname(String staffname) {
		this.staffname = staffname;
	}

	public List<StaffInfoTreeChildren> getStaffInfoTreeChildren() {
		return StaffInfoTreeChildren;
	}

	public void setStaffInfoTreeChildren(List<StaffInfoTreeChildren> StaffInfoTreeChildren) {
		this.StaffInfoTreeChildren = StaffInfoTreeChildren;
	}

}
